package rensoft.android.view.requestdata;

import rensoft.android.lang.IRequest;
import rensoft.java.event.Event;
import rensoft.java.lang.Callback;

public interface IRequestData<T extends IRequest> {
  Event<Void> eventFailed();

  Event<T> eventLoaded();

  T getDataRequest();

  boolean isReady();

  void load();

  void reload();

  void setCreateRequestListener(Callback<T> callback);
}
